import Layout from '@/layout';
const mediaCustomerRoutes = {
  path: '/mediaCustomer',
  component: Layout,
  redirect: 'mediaCustomer/index',
  meta: {
    title: '媒体管理',
    icon: 'example',
    permissions: ['查看媒介客户', '管理媒介客户'],
  },
  children: [
    {
      path: 'mediaCustomer/index',
      name: 'mediaCustomerList',
      component: () => import('@/views/media-customer/List'),
      meta: { title: '媒体列表', permissions: ['查看媒介客户', '管理媒介客户'] },
    },
    {
      path: 'mediaCustomer/add',
      name: 'mediaCustomerAdd',
      component: () => import('@/views/media-customer/Add'),
      meta: { title: '新增媒体', permissions: ['管理媒介客户']  },
      hidden: true,
    },
    {
      path: 'contract/index',
      name: 'mcontractList',
      component: ()=>import('@/views/mcontract/List'),
      meta: { title: '媒体合同列表' },
    },
    {
      path: 'contract/add',
      name: 'mcontractAdd',
      component: ()=>import('@/views/mcontract/Add'),
      meta: { title: '新增媒体合同' },
      hidden:true
    },
  ],
};

export default mediaCustomerRoutes;
